package cn.wmlive.hhvideo.rxbuslib;

/**
 * Created by lsq on 6/9/2017.
 * 事件的消息
 */

public class RxBusMessage {
    private int code;   //事件的code
    private Object object = new Object();  //发送的数据

    public RxBusMessage(int code, Object o) {
        this.code = code;
        this.object = o;
    }

    public RxBusMessage(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    @Override
    public String toString() {
        return "RxBusMessage{" +
                "code=" + code +
                ", object=" + (object == null ? "null" : object.toString()) +
                '}';
    }
}
